type net/http.body
18 uses
net/http (current package)
server.go#L1087: if body, ok := req.Body.(*body); ok {
server.go#L1443: case *body:
server.go#L1760: body, ok := w.req.Body.(*body)
server.go#L2263: case *body:
server.go#L2279: case *body:
transfer.go#L568: t.Body = &body{src: internal.NewChunkedReader(r), hdr: msg, r: r, closing: t.Close}
transfer.go#L573: t.Body = &body{src: io.LimitReader(r, realLength), closing: t.Close}
transfer.go#L578: t.Body = &body{src: r, closing: t.Close}
transfer.go#L811: type body struct {
transfer.go#L831: func (b *body) Read(p []byte) (n int, err error) {
transfer.go#L841: func (b *body) readLocked(p []byte) (n int, err error) {
transfer.go#L911: func (b *body) readTrailer() error {
transfer.go#L964: func (b *body) unreadDataSizeLocked() int64 {
transfer.go#L971: func (b *body) Close() error {
transfer.go#L1012: func (b *body) didEarlyClose() bool {
transfer.go#L1020: func (b *body) bodyRemains() bool {
transfer.go#L1026: func (b *body) registerOnHitEOF(fn func()) {
transfer.go#L1035: b *body